package com.jcsz.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.jcsz.common.utils.PageUtils;
import com.jcsz.gulimall.product.entity.AttrEntity;
import com.jcsz.gulimall.product.entity.AttrGroupEntity;
import com.jcsz.gulimall.product.vo.AttrGroupWithAttrsVo;
import com.jcsz.gulimall.product.vo.SpuItemAttrGroupVo;

import java.util.List;
import java.util.Map;

/**
 * 属性分组
 *
 * @author 一把Po吉他
 * @email volibear@gulimall.com
 * @date 2022-10-16 08:40:06
 */
public interface AttrGroupService extends IService<AttrGroupEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils queryPageByCatId(Map<String, Object> params,Long catId);


    List<AttrEntity> queryAttrs(Long attrgroupId);

    PageUtils queryNoAttrs(Map<String, Object> params,Long attrgroupId);

    List<AttrGroupWithAttrsVo> getAttrGroupWithAttrByCategoryId(Long catelogId);

    List<SpuItemAttrGroupVo> getAttrGroupWithAttrBySpuId(Long id, Long spuId);
}

